package com.woniu.user.exception;

public enum WebExceptionCode {

    USER_IS_NOT_EXISTS(1001, "用户不存在"),
    USER_IS_NOT_AVAILABLE(1002, "用户不可用"),
    PASSWORD_IS_NOT_RIGHT(1003, "密码错误"),
    EMAIL_IS_EXISTS(1004, "当前邮箱已被注册"),
    COACH_IS_NOT_EXISTS(1005, "该教练不存在"),
    DELETE_FAILED(1006, "删除失败"),
    EMAIL_NOT_MATCH(1007, "邮箱不匹配"),
    MAIL_SEND_FAILED(1008, "邮件发送失败"),
    CODE_INCORRECT(1009, "验证码有误"),
    PARAM_NULL(1010, "参数不能为空"),
    YOU_DO_NOT_HAVE_THIS_POWER(1011, "你没有这个权限"),
    USERNAME_EXISTS(1012, "该用户名已被使用"),
    COACH_IS_OCCUPIED(1013, "教练时间已被占用"),
    BALANCE_IS_NOT_ENOUGH(1014, "余额不足"),
    OCCUPY_IS_NOT_EXISTS(1015, "不存在该条占用信息"),
    CASH_MONEY_INCORRECT(1016, "提现金额不能大于余额"),
    WITH_NO_TOKEN(1017, "没有token"),
    CASH_NOT_BIGGER_THAN_ZERO(1018, "金额需大于0"),
    CHARGE_IS_NOT_EXISTS(1019, "充值单不存在"),
    CHARGE_STATES_IS_NOT_CORRECT(1020, "状态异常"),
    YOU_DON_NOT_SET_PRICE(1026, "还未设置课时费"),
    SIGN_HAS_EXISTS(1021, "签约信息已存在"),
    ORDER_IS_NOT_EXISTS(1022, "订单信息不存在"),
    ORDER_INFO_INCORRECT(1023, "订单信息不匹配"),
    BOOK_IS_NOT_EXISTS(1024, "预约单不存在"),
    OCCUPY_ERROR(1025, "移除占用时间表异常"),
    REMARK_IS_NULL(1026, "无评价")
    ;
    Integer code;
    String message;

    WebExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
